import ajax from "../../utils/ajax";

const my_yes = document.querySelector('header .userbar .yes')
const my_no = document.querySelector('header .userbar .no')

init();

async function init() {
  const result = await ajax('get', '/api/getUserInfo');
  if (result.flag) {
    my_yes.style.display = 'block'
  } else {
    my_no.style.display = 'block'
  }
}